package com.luxx.entity;
<#assign tablename=table?lower_case?cap_first?replace("_","")>
/**  
 * 对应表 ${table}
 *
 * @author luxx  
 *  
 */  
public class ${tablename}{
	<#list columnList as column>
	
	<#if column.sqlNotNull>
	@NotEmpty(message="field is not empty")
	</#if>
	private ${column.javaType.simpleName} ${column.name?lower_case?replace("_","")};
	</#list>
	
	public ${table}() {}
	
	<#list columnList as column>
    <#assign method=column.name?lower_case?cap_first?replace("_","")>
    <#assign obj=column.name?lower_case?replace("_","")>
	public ${column.javaType.simpleName} get${method}(){
		return ${obj}; 
	}
	public void set${method}(${column.javaType.simpleName} ${obj}){
		this.${obj}=${obj};
	}
	</#list>
}